@import '~@common/css/_variables.scss';

.mvList {
  display: flex;

  li {
    position: relative;
    width: calc((100% - 60px) / 4);
    margin-bottom: 14px;
    overflow: hidden;

    &:not(:last-child) {
      margin-right: 20px;
    }

    // &.hideLst {
    //   margin-bottom: 0;
    // }

    .img_box {
      position: relative;
      width: 100%;
      padding-top: calc(100% / 1.8);
      cursor: pointer;
      background-position: center center;
      background-repeat: no-repeat;
      background-size: 100% 100%;
      border-radius: 6px;

      .copywriter {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 5;
        width: 100%;
        padding: 12px 8px;
        font-size: 14px;
        line-height: 1;
        color: #fff;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transform: all 0.25 ease;
      }

      &:hover {
        .copywriter {
          opacity: 1;
        }

        .playCount_box {
          opacity: 0;
        }
      }
    }

    .name {
      margin: 4px 0 0;
      overflow: hidden;
      font-size: 14px;
      line-height: 1.5;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .artistName {
      font-size: 12px;
      color: #676767;
    }

    @media screen and (max-width: 1300px) {
      width: calc((100% - 40px) / 3);
      overflow: hidden;

      &:not(:last-child) {
        margin-right: 20px;
      }

      &.hideLst {
        &:last-child {
          display: none;
        }
      }

      &:not(:nth-last-child(2)) {
        margin-right: 20px;
      }

      .img_box {
        padding-top: calc(100% / 1.78);
      }
    }
  }
}
